import java.math.BigDecimal;

/**
 * 计算器
 * <p>Filename: PACKAGE_NAME.Cal.java</p>
 * <p>Date: 2020-09-24 15:34.</p>
 *
 * @author <a href="mailto:liufuguo@qianmi.com">OF3581-刘富国</a>
 * @version 0.1.0
 */
public class Calculator {
    /**
     * 利率
     */
    public Rate rate;

    /**
     * 贷款类型
     */
    public RepayType repayType;

    /**
     * 贷款年限
     */
    public Integer year;

    /**
     * 贷款金额
     */
    public BigDecimal loanMoney;

    /**
     * 计算总支付金额
     *
     * @return 总支付金额
     */
    public BigDecimal calTotalPay() {
        return null;
    }

    /**
     * 计算总利息
     *
     * @return 总利息
     */
    public BigDecimal calTotalInterest() {

        return null;
    }


    public Rate getRate() {
        return rate;
    }

    public void setRate(Rate rate) {
        this.rate = rate;
    }

    public RepayType getRepayType() {
        return repayType;
    }

    public void setRepayType(RepayType repayType) {
        this.repayType = repayType;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public BigDecimal getLoanMoney() {
        return loanMoney;
    }

    public void setLoanMoney(BigDecimal loanMoney) {
        this.loanMoney = loanMoney;
    }
}
